//
//  UIColor+Extension.m
//  Fee
//
//  Created by fee on 15/8/19.
//  Copyright (c) 2015年 fee. All rights reserved.
//

#import "UIColor+Extension.h"

//颜色
#define RGBColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define RGBColorAlpha(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]

@implementation UIColor (Extension)

#pragma mark - Hex

+ (UIColor *)colorWithHex:(int)hexValue alpha:(CGFloat)alpha
{
    return [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0
                           green:((float)((hexValue & 0xFF00) >> 8))/255.0
                            blue:((float)(hexValue & 0xFF))/255.0
                           alpha:alpha];
}

+ (UIColor *)colorWithHex:(int)hexValue
{
    return [UIColor colorWithHex:hexValue alpha:1.0];
}

#pragma mark - theme colors

+ (UIColor *)themeColor
{
    return RGBColor(213,9,17);
}

+ (UIColor *)bgColor{
    return RGBColor(238, 238, 238);
}

+ (UIColor *)navTitleColor
{
    return [UIColor whiteColor];
}
+ (UIColor *)subTitleLabelColor
{
    return [UIColor lightGrayColor];
}

+ (UIColor *)tabTintColor{
    return RGBColor(0, 110, 188);
}


+ (UIColor *)shopTabColor{
    return RGBColor(225, 15, 21);
}
+ (UIColor *)shopTabClickColor{
    return RGBColor(208, 15, 21);
}
+(UIColor *)labelredColor{
    return RGBColor(242, 115, 116);
}

+ (UIColor *)maskColor{
    return RGBColorAlpha(0,0,0,0.3);
}
+ (UIColor *)femaleColor{
    return RGBColor(239, 142, 171);
}
+ (UIColor *)maleColor{
    return RGBColor(44, 142, 207);
}
+ (UIColor *)shopStore1Color{
    return RGBColor(19, 172, 168);
}
+ (UIColor *)shopStore2Color{
    return RGBColor(59, 127, 195);
}
+ (UIColor *)shopStore3Color{
    return RGBColor(255, 164, 76);
}
@end
